package edu.zut.cs.software.cms.module.all.clazz.web.spring.controller;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;

import edu.zut.cs.software.cms.base.web.spring.controller.GenericController;
import edu.zut.cs.software.cms.module.all.clazz.domain.Clazz;
import edu.zut.cs.software.cms.module.all.clazz.service.ClazzManager;

/**
 * 
 * @author 42276
 *
 */
@Controller
@RequestMapping("/clazz")
public class ClazzController extends GenericController<Clazz,Long,ClazzManager>{
	ClazzManager clazzManager;
	
	@RequestMapping(method = RequestMethod.GET, value = "/index.html")
	public String index() {
		String result = "/clazz/index";
		return result;
	}
	
	@Autowired
	public void setClazzManager(ClazzManager clazzManager) {
		this.clazzManager = clazzManager;
		this.manager = this.clazzManager;
	}
}
